﻿''' <summary>
''' 组件方案头映射
''' </summary>
Public Class PartSchemeHeadMapper
    Private db As IMySqlService = New MySqlServiceImpl

    Public Function [Select]() As DataTable
        Dim sql As String = <sql>
                                select * from part_scheme_head where 1 = 1
                            </sql>
        Return db.select(sql)
    End Function

    Public Function Select_ByHeadId(ByVal head_id As Integer) As DataTable
        Dim sql As String = <sql>
                                select * from part_scheme_head where head_id = {0}
                            </sql>
        Return db.select(String.Format(sql, head_id))
    End Function

End Class
